﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using AttributeRouting;
using AttributeRouting.Web.Mvc;
using PH.Model.Systems;
using PH.Logic.Systems;
namespace PH.Web.Management.Areas.Systems.Controllers
{
    [RouteArea("Systems")]
    [RoutePrefix("Notice")]
    public class NoticeController : Controller
    {
        [Route("")]
        public ActionResult Index()
        {
            return View();
        }

        [Route("Edit/{id:int}")]
        public ActionResult Edit(int id = 0)
        {
            var model = new NoticeModel();
            if (id > 0)
                model = NoticeLogic.GetModel(id);
            return PartialView(model);
        }
    }
}
